﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
 CodeBehind="ListOfNationalTeams.aspx.cs" Inherits="Nivdal.ListOfNationalTeams" Theme="SkinFile" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="basic_element">
    <div class="red_title">
       <asp:Label ID="U19TeamsTitleLabel" runat="server" CssClass="white_title" Text="<%$ Resources:Resource, NationalTeams_YouthTeamsList %>"></asp:Label>
    </div>
    <div class="padding5">
        <asp:GridView ID="U19TeamsGrid" runat="server" DataSourceID="U19TeamsDataSource" AllowPaging="false"
         SkinID="Professional" AutoGenerateColumns="false">
            <Columns>
                <asp:TemplateField HeaderText="<%$ Resources:Resource, Global_Team %>">
                    <ItemTemplate>
                        <asp:HyperLink ID="Flaglink" runat="server" ImageUrl='<%# "~/Images/Flags/" + Eval("Flag") %>'
                         NavigateUrl='<%# "~/Country.aspx?Id=" + Eval("CountryId") %>' ToolTip='<%# Eval("CountryName") %>'></asp:HyperLink>
                        <asp:HyperLink ID="TeamLink" runat="server" Text='<%# Eval("TeamName") %>' SkinID="BlackHyperLinkSkin"
                         NavigateUrl='<%# "~/NationalTeam.aspx?Id=" + Eval("TeamId") %>' ></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="<%$ Resources:Resource, Global_Region %>">
                    <ItemTemplate>
                        <asp:Label ID="RegionLabel" runat="server" SkinID="GridLabel" Text='<%# Eval("RegionName") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="<%$ Resources:Resource, Global_Manager %>">
                    <ItemTemplate>
                        <asp:Hyperlink ID="ManagerLink" runat="server" NavigateUrl='<%# "~/UserPage.aspx?Id=" + Eval("ManagerId") %>'
                         Text='<%# Eval("ManagerName") %>' SkinID="GreenTitleHyperLink"></asp:Hyperlink>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns> 
        </asp:GridView>
    </div>
    </div>
    <div class="basic_element">
    <div class="red_title">
       <asp:Label ID="NationalTeamsTitleLabel" runat="server" CssClass="white_title" Text="<%$ Resources:Resource, NationalTeams_ListNationalTeams %>"></asp:Label>
    </div>
    <div class="padding5">

        <asp:GridView ID="NationalTeamsGrid" runat="server" DataSourceID="NationalTeamsDataSource" AllowPaging="false"
         SkinID="Professional" AutoGenerateColumns="false">
            <Columns>
                <asp:TemplateField HeaderText="<%$ Resources:Resource, Global_Team %>">
                    <ItemTemplate>
                        <asp:HyperLink ID="Flaglink" runat="server" ImageUrl='<%# "~/Images/Flags/" + Eval("Flag") %>'
                         NavigateUrl='<%# "~/Country.aspx?Id=" + Eval("CountryId") %>' ToolTip='<%# Eval("CountryName") %>'></asp:HyperLink>
                        <asp:HyperLink ID="TeamLink" runat="server" Text='<%# Eval("TeamName") %>' SkinID="BlackHyperLinkSkin"
                         NavigateUrl='<%# "~/NationalTeam.aspx?Id=" + Eval("TeamId") %>' ></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="<%$ Resources:Resource, Global_Region %>">
                    <ItemTemplate>
                        <asp:Label ID="RegionLabel" runat="server" SkinID="GridLabel" Text='<%# Eval("RegionName") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="<%$ Resources:Resource, Global_Manager %>">
                    <ItemTemplate>
                        <asp:Hyperlink ID="ManagerLink" runat="server" NavigateUrl='<%# "~/UserPage.aspx?Id=" + Eval("ManagerId") %>'
                         Text='<%# Eval("ManagerName") %>' SkinID="GreenTitleHyperLink"></asp:Hyperlink>
                    </ItemTemplate>
                </asp:TemplateField>

            </Columns> 
        </asp:GridView>
        <asp:SqlDataSource ID="NationalTeamsDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            SelectCommand="Nivdal_NTGetNationalTeams" SelectCommandType="StoredProcedure">
            <SelectParameters>
                <asp:Parameter Name="National" DefaultValue="1" />
            </SelectParameters>
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="U19TeamsDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            SelectCommand="Nivdal_NTGetNationalTeams" SelectCommandType="StoredProcedure">
            <SelectParameters>
                <asp:Parameter Name="National" DefaultValue="0" />
            </SelectParameters>
        </asp:SqlDataSource>
    </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PageNamePlaceHolder" runat="server">
    <asp:Label ID="PageNameLabel" runat="server" Text="<%$ Resources:Resource, Master_NationalTeams %>" CssClass="PageNameContentStyle"></asp:Label>
</asp:Content>
